<template>
  <div class="HeadTitle">
    <div class="item">
      <div @click="$router.back()">
        <van-icon name="arrow-left" />
      </div>
      <p>{{ $route.meta.title }}</p>
      <div class="hide">
        <van-icon name="ellipsis" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name:'HeadTitle',
  props:{
    type:{
      type:Number,
      default: 0,
    }
  },
};
</script>

<style scoped>
.HeadTitle {
  z-index: 1000;
  position: fixed;
  top: 0;
  width: 100vw;
  height: 88px;
  background-color: #fff;
  display: flex;
  align-items: center;
}
.HeadTitle .item {
  width: 100%;
  padding: 0 26px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hide {
  opacity: 0;
}
.item p {
  font-size: 32px;
  color: #333;
  font-weight: 600;
}
</style>